/*
 * @Author: linZeJian
 * @Date: 2023-03-28 09:59:07
 * @LastEditors: linZeJian
 * @LastEditTime: 2023-11-01 16:56:07
 * @Description:
 */
const BundleAnalyzerPlugin =
  require("webpack-bundle-analyzer").BundleAnalyzerPlugin;

module.exports = {
  publicPath: "/", // 本地运行路由前缀
  outputDir: "dist",
  devServer: {
    disableHostCheck: true,
    proxy: {},
    host: "0.0.0.0",
    port: 9090, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
    https: false,
  },
  productionSourceMap: false, //去掉.map文件，文件体积会小很多
  configureWebpack: {
    plugins: [new BundleAnalyzerPlugin()],
  },
};
